package com.yaglyf.mvc.emun;

/**
 * Title: Class CommentsShow
 * Description:
 * 注释展示类，说明各种方法注释怎么写
 *
 * @author qiang.yang
 * @version 1.0.0
 * @email qiang.yang@chinaredstar.com
 * @date: 2016/10/16 17:15
 */
public enum UserEnum {
    LOGIN_ERR( 10,"登录失败"),
    LOGIN_SUC( 11,"登录成功"),
    LOGIN_NAME_ERR( 12,"用户名不存在"),
    LOGIN_PSW_ERR( 13,"密码不正确"),
    REG_ERR( 20,"注册失败"),
    REG_SUC( 21,"注册成功"),
    REG_NAME_ERR( 22,"用户名已存在");


    private final int code;
    private final String message;

    UserEnum(int code, String message) {
        this.code = code;
        this.message = message;
    }

    public int getCode() {
        return code;
    }

    public String getMessage() {
        return message;
    }


}
